package net.wanho.mapper;

import net.wanho.po.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
* @author Administrator
* @description 针对表【brand(品牌表)】的数据库操作Mapper
* @createDate 2025-04-28 11:41:58
* @Entity net.wanho.po.Brand
*/
public interface BrandMapper extends BaseMapper<Brand> {

    @Select("SELECT brand_name FROM brand WHERE brand_id = #{brandId}")
    String selectBrandName(Integer brandId);

    @Select("SELECT brand_id FROM brand WHERE brand_name = #{brandName}")
    Integer selectIdByBrandName(String brandName);
}




